<?php
/* @var $this OrganizersController */
/* @var $model Organizers */

$this->breadcrumbs=array(
	'Quản lý Organizers'=>array('index'),
	'Quản lý ',
);

$this->menu=array(
	array('label'=>'List Organizers', 'url'=>array('index')),
	array('label'=>'Create Organizers', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#organizers-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Quản lý Organizers</h1>



<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php  echo CHtml::link('Create Organizers',array('/Organizers/organizers/create'),array('class'=>'btn btn-beoro-3','style'=>'float:right')); ?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'organizers-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'title',
		'brief',
		'image',
		'address',
		'ward',
		/*
		'district',
		'district_id',
		'city',
		'city_id',
		'country',
		'country_id',
		'phone',
		'altphone',
		'fax',
		'website',
		'email',
		'numevents',
		'status',
		'createddate',
		'url',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
